// src/api/system/order.js
import request from '@/utils/request'

// 查询订单管理列表
export function listOrderManagement(query) {
  return request({
    url: '/system/order_management/list',
    method: 'get',
    params: query
  })
}

// 查询订单管理详细
export function getOrderManagement(id) {
  return request({
    url: '/system/order_management/' + id,
    method: 'get'
  })
}

// 新增订单管理
export function addOrderManagement(data) {
  return request({
    url: '/system/order_management',
    method: 'post',
    data: data
  })
}

// 修改订单管理
export function updateOrderManagement(data) {
  return request({
    url: '/system/order_management',
    method: 'put',
    data: data
  })
}

// 删除订单管理
export function delOrderManagement(id) {
  return request({
    url: '/system/order_management/' + id,
    method: 'delete'
  })
}

// 导出订单管理
export function exportOrderManagement(query) {
  return request({
    url: '/system/order_management/export',
    method: 'get',
    params: query
  })
}